import React, {Component} from 'react';
import Swipers from "./swipers/swipers";
import SwiperItem from "./swipers/swiperItem";
class App extends Component {
    state={
        list:[],
    }

    componentDidMount() {
        setTimeout(()=>{
            this.setState({
                list: ['00', '01', '02', '03', '04', '05', '06', '07', '08', '09'],
            })
        },1000)
    }

    render() {
        return (
            <div>
                <Swipers loop={true}>
                    {
                        this.state.list.map((item, index) =>
                            <SwiperItem key={index}>{item}</SwiperItem>
                        )
                    }
                </Swipers>
            </div>
        );
    }
}

export default App;
